<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<title>word文档</title>
		<link href="/css/word.css" rel="stylesheet">
	</head>

	<body class="reed">
		<div id="table">
			<div class="add">
				<form action="{{route('admin_word')}}" method="get">
					<input type="text" name="name" value="{{$name}}" placeholder="请输入公司名称" />
					<!--<input type="text" name="user" value="" placeholder="" />
					<input type="date" name="date" value="" placeholder="时间" />-->
					<button type="submit">搜  索</button>
				</form>
			</div>
			<table cellpadding="0" cellspacing="0">
				<thead>
					<tr class="lirehd">
						<th>序号</th>
						<th>文档</th>
						<th>时间</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
					@foreach($data as $k=>$v)
					<tr>
						<td width="5%">{{$k+1}}</td>
						<td>{{$v['name']}}</td>
						<td width="15%">{{$v['create_time']}}</td>
						<td width="20%"><a target="_blank" href="https://view.officeapps.live.com/op/view.aspx?src=http://{{Request::server('HTTP_HOST')}}{{$v['url']}}"><span class="delete">预览</span></a><a href="{{$v['url']}}"><span class="edit">下载</span></a></td>
					</tr>
					@endforeach
				</tbody>
			</table>
			
		</div>
		
	</body>

</html>